import GoodsOrderModel from "./goods_order_model"

interface OrderModel {

    orderid: string,
    paystate: string,
    price: string,
    goodsnum: string
    ispintuan:any
    goodslist: GoodsOrderModel[]
}


export function OrderStatusText(status: string): string {
    switch(status) {
        case "1":
            return "待付款"
        case "2":
            return "待发货"
        case "3":
            return "待收货"
        case "4":
            return "交易成功"
        case "5":
            return "退款/售后"
        case "6":
            return "交易关闭"
    }
    return ""
}

export default OrderModel